home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
User's Choice Windows CD
/
User's Choice Windows CD (CMS Software)(1993).iso
/
utility3
/
what.zip
/
DLLDEMO._
/
DLLDEMO.bin
Wrap
Text File
|
1992-07-15
|
1KB
|
68 lines
default: goal
CC = cl -c -W3 -ASw -Gsw -Zip -Oas -Lr $(DEF)
ASM = masm -Mx -Zi
LINK= link /NOE/CO/LI/MAP/NOD/batch
DEF =-DDEBUG
RC = rc
HC = hc31
# slibcer is for C6, slibce for C7. Because
# we link with /batch, we can include both of
# them and not get a warning.
CLIB = slibcer slibce
LIBS = sdllcew libw $(CLIB)
OBJ = dlldemo.obj ewdemo.obj libmain.obj
.c.obj:
$(CC) $*.c
.asm.obj:
$(ASM) $*;
goal: dlldemo.dll dlldemo.hlp
.SUFFIXES : .OBJ .EXE .C .ASM .DEF .LIB
#
# Link the DLL, NOTE libentry.asm *must* be first
#
dlldemo.dll: $(OBJ) dlldemo.def libentry.obj
$(LINK) @<<
libentry.obj+
$(OBJ),
dlldemo.dll,
dlldemo,
$(LIBS),
dlldemo.def;
<<
$(RC) dlldemo.dll
cvpack -p dlldemo.dll
mapsym dlldemo
#
# Make the helpfile
#
dlldemo.hlp: dlldemo.rtf dlldemo.hpj
$(HC) dlldemo.hpj
clean:
del dlldemo.dll
del dlldemo.hlp
del dlldemo.err
del *.obj
del *.map
del *.sym
depend:
mv makefile makefile.old
sed "/^# START Dependencies/,/^# END Dependencies/D" makefile.old > makefile
del makefile.old
echo # START Dependencies >> makefile
includes -l *.c *.asm >> makefile
echo # END Dependencies >> makefile
# START Dependencies
# END Dependencies